package com.spira;

public class SpiraTestRun {

	private int testId;

	private SpiraTestStatus status;
	
	private SpiraTestInfo info;

	public SpiraTestRun(){}
	
	public SpiraTestRun(int testId, SpiraTestStatus status, SpiraTestInfo info){
		
		this.testId = testId;
		
		this.status = status;
		
		this.info = info;
	}
	
	public static SpiraTestRun newPassed(int testId, SpiraTestInfo info){
		
		return new SpiraTestRun(testId, SpiraTestStatus.PASS, info);
	}
	
	public static SpiraTestRun newFailed(int testId, SpiraTestInfo info){
		
		return new SpiraTestRun(testId, SpiraTestStatus.FAIL, info);
	}
	
	public SpiraTestStatus getStatus() {
		return status;
	}

	public SpiraTestInfo getInfo() {
		return info;
	}

	public void setStatus(SpiraTestStatus status) {
		this.status = status;
	}

	public void setInfo(SpiraTestInfo info) {
		this.info = info;
	}
	
	public int getTestId() {
		return testId;
	}

	public void setTestId(int testId) {
		this.testId = testId;
	}
}
